package org.jeecg.eqp.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.jeecg.eqp.entity.EqpSpchkheadValue;
import org.jeecg.eqp.vo.*;

import java.util.List;

/**
 * @Description: 点检记录表
 * @Author: shaolong
 * @Date: 2022-10-13
 * @Version: V1.0
 */
public interface EqpSpchkheadValueMapper extends BaseMapper<EqpSpchkheadValue> {

    IPage<EqpSpchkheadValueVO> getEqpRecordList(Page<EqpSpchkheadValueVO> page, @Param("param") EqpSpchkheadValue eqpSpchkheadValue);

    List<EqpMaintainDetailVO> getEqpDetailList(@Param("param") EqpSpchkheadValue eqpSpchkheadValue);

    EquipmentInfoVO getEquipmentInfos(@Param("serialno") String serialno, @Param("recId") Integer recId);

    List<SpchkDetailVO> getDetails(@Param("headIds") List<Integer> headIds);
}
